
"""
CBV
"""
from django.urls import path, include
from rest_framework import routers

from .views import NewsView

app_name = 'news'

# urlpatterns = [
#     # 查询多条 和 添加
#     path('news/',NewsView.as_view({'get': 'list', 'post': 'create'}), name='news'),
#     # 查询1条 和 修改 删除
#     path('news/<int:pk>',NewsView.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'}), name='news_detail'),
# ]

